package com.wetao.lib_common.bean.response;

import com.wetao.lib_common.utils.JsonUtils;

import java.io.Serializable;
import java.util.List;

/**
 * author: zhouyh
 * created on: 4/9/21 9:34 AM
 * description: 答题互动
 */
public class ClassAnswerInfo implements Serializable {




    /**
     * answerContent :["A"]
     * options : ["A","B","C","D"]
     * questionType : 1  //题型 1单选 2判断 3简答题 4 多选
     * lessionQuesionId:
     */

    private List<String> answerContent;
    private Integer questionType;
    private List<String> options;
    private Integer lessonQuestionId;


    public static ClassAnswerInfo objectFromData(String str) {

        return (JsonUtils.getmGson()).fromJson(str, ClassAnswerInfo.class);
    }

    public List<String> getAnswerContent() {
        return answerContent;
    }

    public void setAnswerContent(List<String> answerContent) {
        this.answerContent = answerContent;
    }

    public Integer getQuestionType() {
        return questionType;
    }

    public void setQuestionType(Integer questionType) {
        this.questionType = questionType;
    }

    public List<String> getOptions() {
        return options;
    }

    public void setOptions(List<String> options) {
        this.options = options;
    }

    public Integer getLessonQuestionId() {
        return lessonQuestionId;
    }

    public void setLessonQuestionId(Integer lessonQuestionId) {
        this.lessonQuestionId = lessonQuestionId;
    }

    public static class AnswerData{
        private List<String> answerContent;


        public static AnswerData objectFromData(String str) {

            return (JsonUtils.getmGson()).fromJson(str, AnswerData.class);
        }

        public List<String> getAnswerContent() {
            return answerContent;
        }

        public void setAnswerContent(List<String> answerContent) {
            this.answerContent = answerContent;
        }
    }
}
